package com.game.framework.dao.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

@Data
@Document
public class PlayerInfo extends BaseEntity<Long> {

    private AccountEntity accountEntity;

    private List<RoleEntity> playerRoles = new ArrayList<>();

    @Override
    public String toString() {
        return "PlayerInfo{" +
                "account='" + accountEntity.getAccount() + '\'' +
                ", registerIP='" + accountEntity.getRegisterIp() + '\'' +
                '}';
    }
}
